.p-span-tag {
    background: #151515;
    border-radius: 3px;
    // cursor: pointer;
    transition: background 0.5s ease;
}

.p-span-tag:hover {
    background: transparent;
}

.mark {
    --lightness: 0.3;
    --highlighted: 1;
    --highlight: oklch(0.7615079135428947 0.09231108114676398 142.7893255428089 / 0.3);
    color: #000000cc;

    &-span {
        --highlight: oklch(0.7615079135428947 0.09231108114676398 142.7893255428089 / 0.3);
        background: linear-gradient(120deg, var(--highlight, #add8e6) 50%, #0000 50%) 110% 0 / 200% 100% no-repeat;
        background-position: calc((1 - var(--highlighted))* 110%) 0;
        transition: background-position 1s;
    }
}

@supports (animation-timeline:view()) {
    .mark {
        --highlighted: 0;
        background: #0000;
        animation: markdown_highlight__gm6CE steps(1) both;
        animation-timeline: view();
        animation-range: entry 100% cover 10%;
    }
}

@keyframes markdown_highlight__gm6CE {
    100% {
        --highlighted: 1;
    }
}

.block {
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px;
    margin: 20px 0;

    span {
        font-size: 1rem;
    }

    iframe {
        border: 0;
        width: 1.5em;
        height: 1.5em;
    }

    svg:root {
        color: rgb(245, 158, 11) !important;
    }
}

.warning {
    background: rgb(255 251 235);
    border: solid 1px rgb(252 211 77);
}

.error {
    background: rgb(255 235 235);
    border: solid 1px rgb(252 77 77);
}

.md-a-img {
    width: 17px;
    vertical-align: sub;
    pointer-events: none;
    background: transparent !important;
}

.hover-link {
    position: relative !important;
    text-decoration: underline !important;
    color: #000 !important;
    text-decoration-color: rgba(241, 137, 46, 0.479) !important;
}

.hover-link::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 1.5px;
    background-color: #f0487b8e;
    width: 0;
    -webkit-transition: width 0.5s linear;
    transition: width 0.5s linear;
    text-decoration: none;
}

.hover-link:hover::before {
    width: 100%;
    -webkit-transition: width 0.5s linear;
    transition: width 0.5s linear;
}

.p-a-div {
    display: none;
    /* 默认隐藏 */
    position: absolute;
    // top: 50%;
    /* 在 a 标签下方 */
    // left: 0;
    margin-top: 2px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
    background: rgb(251, 251, 250);
    animation: dropdown 0.3s;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
    border-radius: 5px;
}

@keyframes dropdown {
    0% {
        transform: scale(0.1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.p-a-span {
    display: none;
    position: absolute;
    margin-top: 2px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
    background: rgb(251, 251, 250);
    animation: dropdown 0.3s;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
    border-radius: 5px;
    white-space: nowrap; 
}

.p-a-span:hover {
    display: block;
}

.hover-link:hover~.p-a-span {
    color: #000;
    display: block;
}